# $NetBSD: Makefile,v 1.1 2014/09/06 22:22:36 thomasklausner Exp $

DISTNAME=	SuperCollider-3.7.2-Source
PKGREVISION=	1
GITHUB_PROJECT=	supercollider
GITHUB_RELEASE=	Version-${PKGVERSION_NOREV}
PKGNAME=	${DISTNAME:C/-Source//}
CATEGORIES=	audio
MASTER_SITES=	${MASTER_SITE_GITHUB:=supercollider/}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://supercollider.github.io/
COMMENT=	Real time audio synthesis and composition programming language
LICENSE=	gnu-gpl-v3

WRKSRC=		${WRKDIR}/SuperCollider-Source
USE_LANGUAGES=	c c++
USE_TOOLS+=	pkg-config
USE_CMAKE=	yes
CMAKE_ARGS+=	-DSYSTEM_BOOST:BOOL=true

.include "../../mk/dlopen.buildlink3.mk"

BUILDLINK_TRANSFORM+=	rm:-ldl
DL_AUTO_VARS=		yes

.include "../../audio/alsa-lib/buildlink3.mk"
.include "../../audio/jack/buildlink3.mk"
.include "../../audio/libsndfile/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../net/avahi/buildlink3.mk"
.include "../../math/fftw/buildlink3.mk"
.include "../../textproc/icu/buildlink3.mk"
.include "../../textproc/yaml-cpp/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../x11/qt4-libs/buildlink3.mk"
.include "../../x11/qt4-tools/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
